package com.anrongtec.zcpt.openapi.manager;


import com.anrongtec.zcpt.openapi.model.AccessTokenInfo;

public interface IAuthCallBack {
	// 服务器异常
	public static final int ERROR_SERVER = 1002;
	// 无错误信息
	public static final int ERROR_EXCEPTION = 1001;
	// 成功
	public static final int SCCUESS = 1000;
	// 连接认证服务器异常
	public static final int ERROR_CONNECT_SERVICE_FAILED = 999;
	// 获取应用权限失败
	public static final int ERROR_ACCESS_PERMISSION_FAILED = 998;
	// 应用权限异常
	public static final int ERROR_APP_PERMISSION_EXCEPTION = 997;
	// 终端安全管控未安装，请先安装终端安全管控
	public static final int ERROR_NOT_INSTALL_MDM = 996;
	// 连接终端安全管控失败
	public static final int ERROR_CONNECT_MDM_FAILED = 995;
	// SDK尚未初始化
	public static final int ERROR_SDK_NOT_INITIALIZED = 994;
	// Token刷新失败
	public static final int ERROR_TOKEN_REFRESH_FAILED = 993;
	// 无用户认证信息
	public static final int ERROR_NO_AUTH_INFO = 992;
	// 回调接口不可为空
	public static final int ERROR_CALLBACK_IS_EMPTY = 991;
	// 认证取消
	public static final int ERROR_AUTH_CANCEL = 990;
	// 获取用户信息失败
	public static final int ERROR_GET_AUTH_INFO_FAILED = 989;
	// 无网络
	public static final int ERROR_NET_WORK_NOT_AVAILABLE = 988;
     //AppKey为空
	public static final int ERROR_APPKEY_EMPTY = 987;
	//用户登出
	public static final int ERROR_USER_LOGOUT = 986;

	void onError(int code, String errorMsg);

	void onProgress(String msg);

	void onSuccess(AccessTokenInfo info);


}
